package wyu.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("user-post-provider")
public interface UserPostFeign {
    @GetMapping("/UP_relevancy/orderByReplyNum")
    List<Integer> orderByReplyNum();
    @GetMapping("/UP_relevancy/replyNum")
    Integer getReplyNum(@RequestParam("postId")int postId);

    @GetMapping("/user_post_collect/getCollectList")
    List<String> getCollectList(@RequestParam("postId")int postId);
    @GetMapping("/user_post_collect/getCollectCount")
    int getCollectCount (@RequestParam("postId")int postId);
    @GetMapping("/user-post-sub/getSubCount")
    int getSubCount (@RequestParam("postId")int postId);
}
